<?php
namespace app\api\model;

use think\Model;

class OrderProduct extends Base
{
    protected $table = 'order_product';
    protected $autoWriteTimestamp = 'datetime';

    public function product()
    {
        return $this->hasOne('Product','id','product_id');

    }


}